package net.alan.modules.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 参数设置
 * Author 李岩飞
 * Email eliyanfei@126.com
 * 2017/11/21
 */
@Entity
@Table(name = "setting")
public class Setting {
    @Id
    @Column(length = 16)
    private String name;//递增
    @Column(length = 64)
    private String title;//标题
    @Column(length = 64)
    private String value;//值

    public Setting() {
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Setting copy(){
        Setting obj = new Setting();
        obj.setName(name);
        obj.setTitle(title);
        obj.setValue(value);
        return obj;
    }
}
